<div ng-controller="userController">
    <h2>Person Information</h2>
    <hr style="border-top: 10px solid #D64B2A;">
    <div class="row person-info">

        <form ng-show="sign" class="form-horizontal info-get">
            <div class="form-group ">
                <label class="person-info-font col-sm-2 control-label">Name:</label>
                <div class="col-sm-10">
                    <p class="person-info-font info-text"><b ng-bind="user.cname"></b></p>
                </div>
            </div>
            <div class="form-group ">
                <label class="person-info-font col-sm-2 control-label">Tel:</label>
                <div class="col-sm-10">
                    <p class="person-info-font info-text"><b ng-bind="user.ctel"></b></p>
                </div>
            </div>
            <div class="form-group ">
                <label class="person-info-font col-sm-2 control-label">Address:</label>
                <div class="person-info-font col-sm-10">
                    <p class="info-text"><b ng-bind="user.address"></b></p>
                </div>
            </div>
        </form>
        <form ng-show="!sign" class="form-horizontal">
            <div class="form-group ">
                <label class="col-sm-2 control-label" style="font-size: 20px">Name:</label>
                <div class="col-sm-10">
                    <input class='form-control cname' type='text'
                            ng-model="user.cname" disabled="disabled" style="font-size: 17px">
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label" style="font-size: 20px">Tel:</label>
                <div class="col-sm-10">
                    <input class='form-control ctel' type='text'
                            ng-model="cu.ctel" style="font-size: 17px" ng-blur="checkCTel()">
                </div>
            </div>
            <div class="form-group ">
                <label class="col-sm-2 control-label" style="font-size: 20px">Address:</label>
                <div class="col-sm-10">
                    <input class='form-control caddress' type='text'
                            ng-model="cu.address" style="font-size: 17px">
                </div>
            </div>
        </form>
        <p class="all-btn">
            <button type="button" class="btn btn-danger update-btn" ng-click="updateInfo()">Update</button>
        </p>
    </div>
    <h3>Complain Information</h3>
    <div>
        <table class="table complain-table">
            <tr style="background-color: #D64B2A;color: white;">
                <th>order Time</th>
                <th>Merchant</th>
                <th>Complain Content</th>
                <th>Complain Result</th>
            </tr>
            <tr ng-repeat="o in orders">
                <td>{{o.createDate}}</td>
                <td>{{o.merchant.mname}}</td>
                <td>{{o.complain}}</td>
                <td>{{o.compainResult}}</td>
            </tr>
        </table>
    </div>
</div>